package com.metier;
import java.util.ArrayList;

public class Station {
	private int idStation;
	private ArrayList<Borne> lesBornes;
	private String libelleEmplacement;
	public Station(int idStation, String libelleEmplacement) {
		super();
		this.idStation = idStation;
		this.libelleEmplacement = libelleEmplacement;
		this.lesBornes = new ArrayList<Borne>();
	}
	public Station(String libelleEmplacement) {
		super();
		this.libelleEmplacement = libelleEmplacement;
		this.lesBornes = new ArrayList<Borne>();
	}
	public int getIdStation() {
		return idStation;
	}
	public ArrayList<Borne> getLesBornes() {
		return lesBornes;
	}
	public void setLesBornes(ArrayList<Borne> lesBornes) {
		this.lesBornes = lesBornes;
	}
	public String getLibelleEmplacement() {
		return libelleEmplacement;
	}
	public void setLibelleEmplacement(String libelleEmplacement) {
		this.libelleEmplacement = libelleEmplacement;
	}
	public int GetNbBorne() {
		return lesBornes.size();
	}
	public void ajoutBorne (Borne b) {
		lesBornes.add(b);
	}
	public String ToString()
	{
		return "Stations existantes : \n\tidStation : " + idStation + "\n\tEmplacement : " + libelleEmplacement ;
	}
}
